import numpy as np
from sklearn import cross_validation
from sklearn import datasets
from sklearn import svm
import scipy.io

# iris = datasets.load_iris()

my_mat = scipy.io.loadmat("/home/zhang/python_learning/DGA/Data_Duval/Duval_Classification_41.mat")
data = my_mat.get('dgoa').transpose()
target = my_mat.get('labels')[0]

clf = svm.SVC(kernel='linear', C=1)
scores = cross_validation.cross_val_score(clf, data, target, cv=5)
print("Accuracy: %0.2f (+/- %0.2f)" % (scores.mean(), scores.std() * 2))


